#!/bin/bash

# import env
source ./.env
#tables
tables="admin_menu admin_permissions admin_role_menu admin_role_permissions admin_role_users admin_roles admin_user_permissions admin_users"
#execute

today=`date +%Y-%m-%d`
filename="admins_"$today".sql"
mysqldump --host="${DB_HOST}" --port="${DB_PORT}" --user="${DB_USERNAME}" --password="${DB_PASSWORD}" -t ${DB_DATABASE} ${tables} > database/${filename}
